import { http } from "@/utils/http";

// 1、查询化学品耗量明细
export const getDetailListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/queryConsumptionDetail", {
    data
  });
};

// 2、化学品耗量明细编辑spec
export const editDetailListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/updateSpc", {
    data
  });
};

// 3、oos回填原因
export const setOOSReasonAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/submitReason", {
    data
  });
};

// 4、自动抄表修正查询
export const getMeterReadingListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/queryReadValueList", {
    data
  });
};

// 5、更新抄表值
export const editMeterReadingListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/updateStatValue", {
    data
  });
};

// 6、耗量记录修正查询
export const getConsumptionRecordListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/queryChemicalStatQuantity", {
    data
  });
};

// 7、更新耗量记录次数
export const editConsumptionRecordListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/updateConsumptionStatQuantity", {
    data
  });
};

// 8、特气耗量分析查询
export const chemicalAnalysisAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/queryConsumptionAnalysis", {
    data
  });
};

// 9、混酸结果查询
export const getMixedResultAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/queryMixedAcidResult", {
    data
  });
};

// 10、混酸记录查询
export const getMixedRecordAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/queryMixedAcidRecord", {
    data
  });
};

// 11、混酸系数查询
export const getCoefficientListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/queryCoefficient", {
    data
  });
};

// 12、更新混酸系数
export const updateCoefficientAPI = data => {
  return http.request("post", "/operation/api/v1/gas/chemical/updateCoefficient", {
    data
  });
};
